package com.jluzh10.learning.domain;

import com.jluzh10.learning.utils.qiniu.QiniuUtil;

import java.util.Date;

public class Teacher {
    private Integer id;

    private String name;

    private String label;

    private String introduction;

    private String head;

    private Date createTime;

    private Integer weight;

    private Byte state;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label == null ? null : label.trim();
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction == null ? null : introduction.trim();
    }

    public String getHead() {
        if (head!=null){
            return QiniuUtil.getUrl(head);
        }
        return null;
    }

    public void setHead(String head) {
        this.head = head == null ? null : head.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Byte getState() {
        return state;
    }

    public void setState(Byte state) {
        this.state = state;
    }
}